package com.sean.designpatterns.create.abstractfactory;

public class Main {
    public static void main(String[] args) {
        AbstractFactory shapeFactory = FactoryProducer.getFactory("Shape");
        shapeFactory.getShape("Circle").draw();
        shapeFactory.getShape("Square").draw();
        shapeFactory.getShape("Rectangle").draw();

        AbstractFactory colorFactory = FactoryProducer.getFactory("Color");
        colorFactory.getColor("Red").fill();
        colorFactory.getColor("Blue").fill();
        colorFactory.getColor("Green").fill();
    }
}
